import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:hotfil_pub_web/widgets/IconFontIcons.dart';
import 'package:hotfil_pub_web/widgets/my_theme.dart';
import 'package:velocity_x/velocity_x.dart';

class HomeNotice extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      height: 36,
      decoration: BoxDecoration(
          color: MyTheme.lightPrimaryColor,
          borderRadius: const BorderRadius.all(Radius.circular(16))),
      child: Row(
        children: [
          const SizedBox(
            width: 12,
          ),
          const Icon(IconFontIcons.iconXitonggonggao),
          const SizedBox(
            width: 9,
          ),
          Expanded(
              child: Text(
            '2021 HOTFIL全球节点代理商资格公布',
            style: TextStyle(color: MyTheme.mainTextColor, fontSize: 12),
          )),
          Stack(
            children: [
              CupertinoButton(
                  padding: EdgeInsets.zero,
                  onPressed: () {},
                  child: Text(
                    '更多',
                    style: TextStyle(color: MyTheme.primaryColor, fontSize: 12),
                  )),
              Positioned(
                top: 6,
                right: 3,
                child: Container(
                  width: 8,
                  height: 8,
                  decoration: BoxDecoration(
                      color: Colors.red,
                      borderRadius: BorderRadius.circular(8)),
                ),
              )
            ],
          ),
          const SizedBox(
            width: 12,
          ),
        ],
      ),
    );
  }
}
